<?php
/* @var $this ContentController */
/* @var $model Content */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'content-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Поля с <span class="required">*</span> должны быть заполнены.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'content_name'); ?>
		<?php echo $form->textField($model,'content_name',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'content_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content_alias'); ?>
		<?php echo $form->textField($model,'content_alias',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'content_alias'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'content_text'); ?>
		<?php 
        $this->widget('ext.imperavi-redactor-widget.ImperaviRedactorWidget',array(
        	'model'=>$model,
			'attribute'=>'content_text',
        ));
        ?>
		<?php echo $form->error($model,'content_text'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content_metatitle'); ?>
		<?php echo $form->textField($model,'content_metatitle',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'content_metatitle'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content_metakey'); ?>
		<?php echo $form->textField($model,'content_metakey',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'content_metakey'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content_metadesc'); ?>
		<?php echo $form->textField($model,'content_metadesc',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'content_metadesc'); ?>
	</div>


<?php $this->endWidget(); ?>

</div><!-- form -->